package org.example.servcie;

import org.example.entity.R;
import org.example.pojo.Emp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author TonySong
 * @date 2024/4/26 0026
 * @time 11:51
 */
@FeignClient("emp-service")
public interface EmpFeignService {


    @GetMapping("/emp/")
    public R getEmp();

    @PostMapping("/emp/")
    public R save(@RequestBody Emp emp);
    @DeleteMapping("/emp/{id}")
    public R delete(@PathVariable("id") Long id);

}
